package cn.iocoder.an.module.mold.controller.admin.storage.vo;


import cn.idev.excel.annotation.ExcelIgnore;
import cn.idev.excel.annotation.ExcelProperty;
import cn.iocoder.an.framework.excel.core.annotations.DictFormat;
import cn.iocoder.an.framework.excel.core.convert.DictConvert;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = false) // 设置 chain = false，避免导入有问题
public class StorageImportExcelVO {
    @ExcelIgnore
    private Long id;

    @Schema(description = "储位编码")
    @ExcelProperty("储位编码")
    private String code;

    @Schema(description = "储位名称")
    @ExcelProperty("储位名称")
    private String name;

    //状态
    @Schema(description = "状态")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("mold_row_status")
    private Integer status;

    @Schema(description = "仓库编码")
    @ExcelProperty("仓库编码")
    private String  warehouseCode;

    @ExcelIgnore
    private Long warehouseId;

    @Schema(description = "数量")
    @ExcelProperty("数量")
    private Long number;

    @Schema(description = "描述")
    @ExcelProperty("描述")
    private String description;
}
